package com.mapproject.industrymap.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapproject.industrymap.entity.DepartmentDataCatalogEntity;
import com.mapproject.industrymap.mapper.SysDepartmentDataCatalogMapper;
import com.mapproject.industrymap.service.SysDepartmentDataCatalogService;
import com.mapproject.industrymap.utils.ReturnValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysDepartmentDataCatalogServiceImpl extends ServiceImpl<SysDepartmentDataCatalogMapper, DepartmentDataCatalogEntity>  implements SysDepartmentDataCatalogService {
    @Autowired
    SysDepartmentDataCatalogMapper sysDepartmentDataCatalogMapper;
    public ReturnValue getDepartmentDataCatalogInfo(String departmentlayer){
        QueryWrapper<DepartmentDataCatalogEntity> queryWrapper=new QueryWrapper<>();
        List<Map<String, Object>> maps = sysDepartmentDataCatalogMapper.selectMaps(queryWrapper);
        return new ReturnValue(200,"查询结果",maps);
    }
}

